namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 设备工位绑定关系表
    /// </summary>
    [SugarTable("DeviceBinding")]
    public class DeviceBinding : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = false, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 设备代号
        /// </summary>
        public string DeviceCode { get; set; }

        /// <summary>
        /// 工位代号
        /// </summary>
        public string StationCode { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 软删除
        /// </summary>
        [SugarColumn(ColumnName = "is_enabled")]
        public bool IsEnabled { get; set; }
    }
}